<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/7
 * Time: 16:34
 */

return [
    'id'=>'artclasslesson-form',
    'template'=>'form_default',
    'enableClientValidation'=>false,
    'enableAjaxValidation'=>false,
    'options'=>['class'=>'form-validate'],
    'models'=>[
        'artclassmanage'=>[
            'title'=>'修改状态',
            'th_with'=>80,
            'elements'=>[
                'status'=>[
                    'type'=>'widget',
                    'class'=> \kartik\select2\Select2::className(),
                    'data' => [
                        '0'=>'未上课',
                        '1'=>'已上课',
                        '2'=>'教师请假',
                        '3'=>'学生请假',
                        '4'=>'教师停课',
                        '5'=>'代课',
                        '6'=>'复课',
                    ],
                    'options' => ['placeholder' => '请选择...'],
//                    'options'=>[
//                        'prompt'=>'请选择状态',
//                        'encode'=>false,
//                        'style'=>'width:170px'
//                    ],
                ],
            ],
        ]
    ]
];